
public class Bicycle {

	static int cadence = 0;
	static int speed = 0;
	static int gear = 1;
	
	static void changeCadence (int newValue) {
		cadence = newValue;
	}
	
	static void changeGear (int newValue) {
		gear = newValue;
	}
	
	static void speedUp (int increment) {
		speed = speed + increment;
	}
	
	static void printState() {
		System.out.println("My Cadence is:" + cadence + " My Gear is: " + gear
				+ " My Speed is: " + speed);
		
	}
	
	public static void main(String [] args) {
		printState();
		changeCadence(4);
		changeGear(7);
		speedUp(3);
		printState();
		speedUp(5);
		printState();
	}
}
